package com.it.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.ArrayList;
import java.util.List;

/**
 * @author : code1997
 * @date : 2021/9/9 22:46
 */

@Data
@TableName("t_tag")
public class BlogTagEntity {

    @TableId(type = IdType.AUTO)
    private Long id;
    @NotBlank(message = "标签的名称不能为空")
    private String name;
    @TableField(exist = false)
    private List<BlogEntity> blogs = new ArrayList<>();


}
